package calculate;

/**
 * This class implements the unary operation negative.
 * 
 * output = - input
 * 
 * @author Jacky Xu
 *
 */
public class Negative implements UnaryOperator {
	@Override
	public double calculate(double a) {
		return -a;
	}
}
